package com.samp.bblock.core.web.bind.json;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class JsonBindSupport {
	
	private static final Logger logger = LoggerFactory.getLogger(JsonBindSupport.class);
	
	protected static JsonBindSupport instance;
	
	public abstract Map<String, Object> toMap(String paramString);
	
	public static JsonBindSupport getInstance(){
		if( instance == null ){
			try{
				instance = (JsonBindSupport)Class.forName("JsonBindSupportImpl").newInstance();
			}catch(Exception e){
				e.printStackTrace();
			}
		}
		return instance;
	}
	
}
